package com.mt.customer.controller;

import com.mt.common.ServiceResult;
import com.mt.customer.api.service.ICustomerAccountService;
import com.mt.customer.entity.CustomerAccountEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@RestController
public class CustomerAccountController {

    @Autowired
    ICustomerAccountService customerAccountService;

    @PostMapping("/customerAccount/doInsert")
    public ServiceResult<Integer> doInsert(@RequestBody CustomerAccountEntity customerAccountEntity) {
        return customerAccountService.doInsert(customerAccountEntity);
    }


}
